package com.twxm.breed.service;

import com.twxm.breed.entity.CategoryInfo;
import com.twxm.breed.entity.EventLog;
import com.twxm.breed.mapper.CategoryInfoMapper;
import com.twxm.breed.mapper.EventLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EventLogService {
    @Autowired
    private EventLogMapper eventLogMapper;


    public void addEvent(Map<String,Object> map) {
        eventLogMapper.insertEvent(map);
    }

    public List<EventLog> getAll() {
        return eventLogMapper.getAll();
    }
}
